package com.yunti.springboot.controller;


import com.yunti.springboot.service.WechatService;
import com.yunti.springboot.vo.Result;
import com.yunti.springboot.vo.req.GetConfigReq;
import com.yunti.springboot.vo.req.SearchStudentReq;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/wechat")
public class WechatController {

    @Resource
    private WechatService wechatService;

    @PostMapping("/getConfig")
    public Result getConfig(@RequestBody GetConfigReq getConfigReq){
        return wechatService.getConfig(getConfigReq);
    }
}
